/*
    单个页表项的抽象
 */
public class PageTableUnit {
    //所对应的帧号
    private int frameNumber;
    //有效无效位
    private boolean validBit;
    PageTableUnit(int frameNumber,boolean validBit){
        this.frameNumber=frameNumber;
        this.validBit=validBit;
    }

    public void setFrameNumber(int frameNumber) {
        this.frameNumber = frameNumber;
    }

    public void setValidBit(boolean validBit) {
        this.validBit = validBit;
    }

    public int getFrameNumber() {
        return frameNumber;
    }

    public boolean isValidBit() {
        return validBit;
    }
}
